#
# Adds the Default MIME Types for ISEG
# Last Updated By: Nate Bruneau (nathbr) | 8/6/2009
#

Write-Host -ForegroundColor Yellow "IIS: Adding Default MIME Types for $env:computername."

& "$env:windir\system32\inetsrv\appcmd.exe" set config /section:staticContent /+"[fileExtension='.dwg',mimeType='image/vnd.dwg']"
& "$env:windir\system32\inetsrv\appcmd.exe" set config /section:staticContent /+"[fileExtension='.lsabs',mimeType='OCS Address book']" 
& "$env:windir\system32\inetsrv\appcmd.exe" set config /section:staticContent /+"[fileExtension='.zip',mimeType='application/x-zip-compressed']" 
& "$env:windir\system32\inetsrv\appcmd.exe" set config /section:staticContent /+"[fileExtension='.psq',mimeType='application/vnd.ms-psq']" 
& "$env:windir\system32\inetsrv\appcmd.exe" set config /section:staticContent /+"[fileExtension='.prt',mimeType='application/vnd.ms-prt']" 

Write-Host -ForegroundColor Yellow "IIS: Adding Default MIME Types for $env:computername. COMPLETED"